package cn.deschen.search.index.adUnit;

import cn.deschen.search.index.IndexObject;
import cn.deschen.search.index.adPlan.AdPlanObject;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author hanbin_chen
 * @Description 推广单元数据，与索引关联
 * @DateTime 2021/6/6
 * @Version V1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class AdUnitObject extends IndexObject<AdUnitObject> {

    @ApiModelProperty(value = "推广单元主键id")
    private Long id;

    @ApiModelProperty(value = "关联推广计划 id")
    private Long planId;

    @ApiModelProperty(value = "推广单元名称")
    private String unitName;

    @ApiModelProperty(value = "推广单元状态（normal-正常 stop-停用）")
    private String unitStatus;

    @ApiModelProperty(value = "广告位类型(coopen-开屏, patch-贴片 , center-中贴, pause-暂停帖, end-后贴)")
    private String positionType;

    @ApiModelProperty(value = "预算")
    private Long budget;

    @ApiModelProperty(value = "推广计划")
    private AdPlanObject planObject;

}
